package com.cutefool.zero.code.admin.meta.model.dto;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

@Data
public class ModelDTO {

    @NotBlank(message = "模型名称不能为空")
    private String name;

    @NotBlank(message = "表名不能为空")
    private String tableName;

    /**
     * 数据库ID
     **/
    @NotNull(message = "数据库不能为空")
    private Long dbmsId;

    /**
     * 组织id
     **/
    @NotNull(message = "组织不能为空")
    private Long companyId;

    /**
     * 应用id
     **/
    @NotNull(message = "应用不能为空")
    private Long appId;
}
